package com.kevin.decorator;

/**
 * 具体装饰者
 *
 * @author kevin
 * @date 2025/8/22
 */
public class ConcreteDecorator extends Decorator{

    public ConcreteDecorator(Component component) {
        super(component);
    }

    public void operation() {
        super.operation();
        addFunction();
    }

    public void addFunction() {
        System.out.println("添加功能");
    }
}
